//package com.rain.eureka.config;
//
//import org.springframework.security.config.annotation.web.builders.HttpSecurity;
//import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
//import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
//
///**
// * 用户认证
// *@Title:  
// *@Description:  
// *@Author: leaf  
// *@Since:2019年2月18日  
// *@Version:1.1.0
// */
//@EnableWebSecurity
//public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
//
//	@Override
//	protected void configure(HttpSecurity http) throws Exception {
//		// spring cloud security 默认启用了csrf，需要关闭
//		http.csrf().disable().authorizeRequests().anyRequest().authenticated().and().httpBasic();
//		super.configure(http);
//	}
//
//}
